#include <iostream>
#include "src/graphe.hpp"

using namespace std;

int main() {
    graphe g;

    initGraphe(g);

    Noeud alder;
    initNoeud(alder, "Alderande", true);

    ajoutNoeud(g, &alder, true);

    cout << "avant ajout coruscant" << endl;

    Noeud coruscant;
    initNoeud(coruscant, "Coruscant", true);
    ajoutNoeud(g, &coruscant, true);

    //ajoutNoeud(g, "Alderande", true);

    Noeud tatooine;
    initNoeud(tatooine, "Tatooine", true);
    ajoutNoeud(g, &tatooine, true);

    Noeud corellia;
    initNoeud(corellia, "Corellia", true);
    ajoutNoeud(g, &corellia, true);

    cout << "gné" << endl;

    cout << "ajout de Alderande->Coruscant : " << ajoutArc(g, "Alderande", "Coruscant", 10, true) << endl;

    afficherGraphe(g, true);

    cout << "stuff" << endl;
    cout << "ajout de corellia->coruscant : " << ajoutArc(g, "Corellia", "Coruscant", 5, true) << endl;

    cout << "ajout arc via main ok" << endl;

    afficherGraphe(g);
    testamentGraphe(g);
    return EXIT_SUCCESS;
}
